const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('sunnyMusicArt', {
    id: {
      type: DataTypes.BIGINT,
      allowNull: false,
      primaryKey: true,
      comment: "主键"
    },
    aartist: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    albumNum: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "标题",
      field: 'album_num'
    },
    artistFans: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "标题",
      field: 'artist_fans'
    },
    contentType: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "标题",
      field: 'content_type'
    },
    isStar: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "标题",
      field: 'is_star'
    },
    musicNum: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "标题",
      field: 'music_num'
    },
    mvNum: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "标题",
      field: 'mv_num'
    },
    name: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    pic: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    pic70: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    pic120: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    pic300: {
      type: DataTypes.STRING(250),
      allowNull: true,
      comment: "标题"
    },
    createTime: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "创建时间",
      field: 'create_time'
    },
    updateUser: {
      type: DataTypes.BIGINT,
      allowNull: true,
      comment: "修改人",
      field: 'update_user'
    },
    updateTime: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "修改时间",
      field: 'update_time'
    },
    status: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "状态"
    },
    deleteTime: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "删除时间",
      field: 'delete_time'
    }
  }, {
    sequelize,
    tableName: 'sunny_music_art',
    timestamps: true,
    createdAt: 'createTime',
    updatedAt: 'updateTime',
    deletedAt: 'deleteTime',
    indexes: [
      {
        name: "PRIMARY",
        unique: true,
        using: "BTREE",
        fields: [
          { name: "id" },
        ]
      },
    ]
  });
};
